﻿#ifndef SPRITESTANDOBJ_H
#define SPRITESTANDOBJ_H
#include "SpriteD3D10.h"
#include "SpriteVertex.h"
#include "SpriteEffect.h"
namespace Sprite
{
	class Box
	{
	public:
		Box();
		~Box();
		virtual void init(float fScale);
		virtual void draw();
		virtual void BuildEffect(std::wstring effectname);
		virtual void BuildVertexLayouts(void);
		virtual void setLayout();
		virtual SpriteEffect* getEffect(void){return m_pCEffect;}
		ID3D10EffectMatrixVariable* m_WVP;
	private:
		DWORD m_NumVertices;
		DWORD m_NumFaces;
		const SpriteD3D* m_pCD3d;
		ID3D10Buffer* m_VB;
		ID3D10Buffer* m_IB;
		SpriteEffect* m_pCEffect;		
		SpriteMat m_Worldmat;
		
		ID3D10InputLayout* m_VertexLayout;
	};
}
#endif